reduce time function call as private variable