use typedef inside main