code formatting and fixing transaction id in replicaserver