univariate potential function polished