fixing double vs triple equsuals issues