shouldn't you break the .each() loop after insertion happened?