should return error when not results are found