clean up lambda inputs