added replacement rules for 'contents'