removed an unused function