setStruct and visibility