new functions per() and onFocus().