use else statement instead of forked bool