fixed indexing for site2 loop