base_for_md