improve position encoding by using arrays in addition to .x/.y