fix negative score bug and add visualization