deletes redundant resources, header restructure