generate dics to file