Removing some writelines