removed deprecation warning