printing at each send