updated exps and inputs to use same function