dispatch function is const