adding first iteration of document