removbing duplicate resource