why dispatching on function won't work