implement if/else statement