parsing each file in each bucket