remove deprecated warnings