added template helpers