import te from mgcv