update pupil register function