added null fct pointer and call to read_write.c