fixed that mgcv was both imported and imported from