categories representation and indexes