Can you revert all your changes to this function please.