Factors affecting family planning