remove needless resource