moving stride to updateBuffer