fixed a stupid bug where I did not have an if statement