error in rrouter snippet