add {} around if block