move stride to util