indent and add confirmation code