finished functionalisation of the script. a single QTL effects is chsoen where there are more than 1