inserting of element works fine