with sanity check for 1 parameter