forgot to close if statement