forgot to remove an unclosed if statement