minir improvement in formAnalys script