getting all files correctly