removed unused function in code