simplified and optimized precedent commit