added a delay to the write