write src and dst