remove unnecessary types