scaffolding the custom index