just use indexOf because it's a lot faster