why is movetoNext() needed?