updated sample to fix style mode