initial scoring algorithm