yet more editing to print functions