more logic parse code.