break up get_entries_in_collection(); add type checking