updated example to take into consideration a collection new parameter;