print automatically