added amend option to commit operation