err formatting