update delete mechanism