error --> err to avoid name clash with built in function