add the bias studies functions
code cleaning