preliminary work to select score