add save_to_csv function for equation muilder module