Removing unecessary write