make add and commit two steps at the very end