fixed inline if else