calculate score in background