updated parse code