typo, = instead of ==