Function outElastic