include err() before calling err()