removing unnecessary Resources