fix deprecation #1