added a useless if statement