got rid of unnecessary code
for scrolling backgrounds