moved lambda to block