take out section flags