initial parse code