The apex court, which dismissed the review pleas filed by three of the four death row convicts of the sensational December 16, 2012 Nirbhaya gangrape and murder case, said the courts cannot be held for committing any illegality in awarding capital punishment in "appropriate cases" till death penalty remains in the penal code.