changed -1 to 0 for score