revert vector calculation