complete parse code