minor refactoring
removed duplicate error message string