add function of read and create