move original function to the new framework