modify index file to accept order