rename the read() function arguments to match the Stream.h