udpate Pattern scoring section