changed potential function to default kernel