made sure booleans are treated as numbers