added and modded .index() methods