main c partial replication contd