removed unused function and unit test