commit: helper methods to reduce redundant blocks of code