removed negative social distance in calculations