warning deprecation fix