mold function

Mold data for modeling