toFunction doesn't even make sense