fix: removed redundant file writing