removed extraneous things in the sortrules