add factory to category