better code generation for lambda abstractions