update routing code

added @ for optional parameter