lambdas for learning routs