fix for weird glm depreciation warnings