changed comparison operator identical to equal