boolean checking should use double equals