added reader.c