added update_flavor()