updated loop format to forEach
Removed sha1 dependency