set struct values