I have succeeded with the second, but I think that first way is also OK. I have removed capture.