added loop
merging