removed 'refs' and put Category instead of categories