add missing err param