Factors affecting caste determination