refactored excel parser