updated to deal with objects without redshifts