adjust structure and set middle