reads/prints scan values