add toFunction support