return deleted function