add typedef

testing github: add typedef to struct and change var name