add calFocus function