remove unnecessary sources