perfect code