changed logic to make files ids