solved moveNservos function