render bug with scrolling fixed

also threshold put back to original