use category as enum