now work on fitting potential interface