update to use non-deprecated call