make if else clearer