almost fixed detailedHistory