read function start write edit