removed a useless block of code