prepare for varying Y