remove deprecation warnings from model