removes nondiagonal steps from being saved in the feature matrix