getting categories from server