try to implement if else