[REFACTOR] remove out of place response from file writing method