fixed syntax error (missing end statement)