implemented detailed list mode in write procedure