implementing function of the move tool