finished lambda environment routines