small refactoring of panel score