remove unused resources and fix whitespace