fix syntax error and indentation