changed fd.flp in writeToDisk method to fdd.flp