update dream code