final change dist.cpp