removed deprecated warnings