fixed write_back
merge conflicts