use err instead of error keyword