factoring out an unnecessary function call