made changes to applying translateRule