uncomment read function