added the move code