added read function to info