Revert "Updated move line function"

This reverts commit 26517eb08302e7a04a92e60ad0f64112305708ea.