dry for elastic function