add destruct function for yyoracle