adding parse code