addFit function setup to remove fitting redundancy across different conditions