remove the deprecated warnings