working on processReadyRead