remove unnecessary code block