removed unused calling of function