added write back and testWB