handling multiple files in a folder