some syntax error fixed