more work on readArray method