now scroll maximum not off by one any more