fix syntax error for ex2.1