fixed reconciling code