adds make element function