added and committed at the same time