working on indexof