if/elif error

not really a bug, but having two ifs in an elif statement bothered me