adjusted home page loop, working on heroku