remove useless resouces