removed extra loops from nfo.php