Done the if block in kgpkubs code