check data before print