you might want to consider using $base() too, to make numbers with 1 digit into two digits (01,02 etc)