delete space in dist.cpp