fixed math logic for AND-ing the schema with a power of 2