fully implemented the stepwise mutations and accumulative mutations
fix a small bug