remove un-needed resources