fix struct methods