removed warning for read extending outside of reference