define revisionId before passing it to new revision object