got if else statement working in hm