added the checks to see if a transaction is in a committed or rolledback stated
incremented the version number