removes substringing in make_sources.py