added some comments about the right way to get the next position