added procs and lambdas