modify if else sentence