modified edit, set instance variable @categories