move transform lambdas to constants