fixed conflicting error messages