err is set but not checked here