remove unused resources;