implementing parsing of nested filters