removes extra function call