implemented scoring