added detail extraction