fixed the alignment bugs in the structures