added autocapture function
commented autocapture