before adding categoryes sorting