fixed backend score calculation