output with better lambda