added if statement to deal with the different ways category user method may be written