deletes unnecessary calculation for interval
changes to wait for capture_done before close capture