Social problems and the quality of life