remove unsused paths