reverting to original pupil finding algorithm