converted struct variables to points to structs