add functions in cal process