param checking for moments done, and found better error way but not changed yet