fixed use of '==' for if statements.