typedef in wrong location