replaced res content