minor change

collapsed if statement