debugged the continuous capture