added option to print reverse index