reused works code using partials collection