created if/else statements