remove unnecessary resource