removes unnecessary newline on removing _if