error messages added in apply()