remove unnecessary function call