line capture working