I'd prefer to use indexOf but since it should be changed soon, let's keep it like this