removed duplicate error messages fix