add captures to sprintf_move()