def a tilling method (work in progress)
add header for save_minspace