copy ext coefs func from old branch