changed reco_z to RecoEndpointZ