THRESHOLD AND WRITE by neethu