Fixed syntax error and removed unused imports