final version with ending score