extract y and X