fixed struct multiple printing error