resources, remove unused code