fixed tags and removed duplicate words