removed unused function def