added the write_back method that was deleted