removing unnecessary code section