working on endlesscrolling bug