modification of moveCell prodedure