fix the move function (tests all clear)