added documentation for wrapReverse