used loop.index0 instead of making an index, jinja for the win