x, y transformation initial attempt