added more index routine