logic for capture