style update - put if in a single line