code after accessing its detail