remove spurious write
cleanup system call