add function: read file to collection