first solution whit serius errors to using for the insert elements