if then else is working