fixed typedef usage