updated setCategory as it is currently not being used.