update score method in helper