remove unused resource reference