refactored indexes. removed collection and returned method index