Changed err to error