```err``` should be declared and used inline