update element object