fix deprecated call