removed sprockets, changed scope and resources to array.