Can you describe in the docstring what rev1 and rev2 are, and what objects they have to be?