improved the capturehelper