modify dist & remove useless code