moved curator and collection back into one function