was doing single = instead of ==