cleaning up type-apply