rename type Err to Error