added function to print li