trying to find index