add writeback method