removing redundtant categories