added wrapper to index