added dependency on indexof to fix heroku error lets hope it works