I assume you didn't write this, but it lacks braces