better solution for negative scores