var analysis of structs