lock structs