category array code