finished the search functions
collect functions
reformated code
collections