made changes to flatfile structure