removed unnecessary code block