added parameter number checking & dup variable / function err