added commit and addAll