refactor stride codes