remove the read method from scanner as that is not its job.