edit main sample flags