more work on pupil detector.