if there's no more messages return null