process a form