wrote file that stores data in yaml