check function and score

add check function and score