updated deprecated call