varid template epand calculte work