basic code of basic-form