adds more functionality to = and == operators