Removed an unnecessary code segment