change dist to 0