updating read function usage