removing not used resources