remembered the mgcv is the package I need. Added to functions require statments.