checking how commit works