changed '==' checks to '==='.