consolidate parse call
minor refactoring to keep things dry