making _write callback

cleaning up

removing set interval

cleaning up