replace resources