remove useless resource