Using "==" instead of "be" for speed improvement