tidy the resource