combined nested if statement into single if statement