implement if else