restore deleted function