try fixing stuct member assignment