clean up and add scores
function type checks but not working