updated ResultsEntry

refactored parsing code to be more functional and reduce the repeated code