delete function doublon writeText