Strong correlation between Tc and lattice parameters in Ba2YCu3Oy