verifying struct works