used some vars closured over deep access