move real typedef up