was having type problems in compiled equality check