removed redundant writes