set struct methods