Removed unnecessary block of code