automatically scoring all function