optimize end of intertyper