cleaned up unused code block