move index to public