fix deprecation call