add string expansion. sprintf is faster, though