added file writing completed