fixed missing err definition