stopped segfault when less than ten results