adjust struct sequence for save memory