added commits function