added a writing loop2