testing: read function