if else works