writing a form