added check for multiple EQ conditions