replacing old determinant calls with new ones