added general structure for capturing