removing resoures