change comparison to "equals" in models