added get flavor function