depreciated indexof fix