changed comparison is to ==