don't capture "this" in lambdas
CUDA lambdas can't capture the calling object very well. make local shallow copies of variables needed.