added uniqueness to code on category scope