added iteration through scores