routines template and form fixed