fixing not zeroing struct