eliminated the use of the cut function and added a separate score_to_factor function
fixed bug with search terms which have a space