changed prints to newr format