added linked list
changed buffer size for file name