tidy the resources