updating how category key is added to aps hash