add detail logic for all.