fixed return value with scrolling