add return for error handling for parser