added management of score