x y template helpers working