change background scroll algorithm