dont be fooled by nested if statements