major overhaul of stage1
derepeat new index calcs