Add register in element function