update reset bug and add chaos calculation