generate M3L format data