move "current" and "next" characters to routingHelper