change type of `capture`