fix structures