fixed score function and added incorrect functions