changed the end index in hasher and removed alert