modify res file