remove unneeded write