move elements insertion to init