use collection instead of list - no need to tie the API to list

also a set can now be used - which is used internally anyway