What happens to potential energy during melting