implement if/else