removed unused code block