trying to improve the scrolling performance