stUart cleaned- input stream tested