fixed logic of regulation filtering