fixed == instead of = on if stmt