add index to package