cleaning up type