smooth closest p