remove debug code needed for scrollbar