removed unused exception ReplaceException