commits optimization