pefect code