removed a wrong if statement