commits changes at end