removed deprecated warning