commit macro