removing unused function