implemented freezing feature