added some detail code