Fixed syntax errors and  error