cleanup typeof