added dispatch method