add __createResult Hook Function