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