indent mid_set code