Let K be the Cantor set. We prove that arbitrarily close to a homeomorphism T: K → K there exists a homeomorphism T̃: K → K such that the ω-limit of every orbit is a periodic orbit. We also prove that arbitrarily close to an endomorphism T: K → K there exists an endomorphism T̃: K → K with every orbit finally periodic.