define and actually use calData