rename and add custom print funtion