adding functionality for dynamic categories