check read function