fixing again indexOf