removed unnecessary writes