make categories method public