capture-and-type