fixing struct variables