removing extra function call