trying to make infinite scroll work