move calenader field to local var