loop still failing