substitute resources