update element functions