change formatting of if/else