added resources, changed index