refactoring parameter parsing for categories and links(cities)