there is no such method as indexof, I meant index