call write only one time