finalizing the form generation after re-changing algorithm