freeze working code