printdetails implementation