add print funtion