don't update element if it is already changed