had == instead of = on else statements

derp.