added error message for zero results