small optimization of function call