Revert "remove reverse method"

This reverts commit 37351bb3d1f864902e2237ba064ee0790586f239.