added function define form and variable define