remove unused code, resource