add router function