removed extra function call