collection.c record.c modified main.c draft version