how to determine category id