fixed bug = instead of ==