fixed ifs

changed = to ==