added how to register new element