removed unused function.