inline if
inline if
no brackets
inline if
remove temporary variables