fixed syntax error for log