taking input stream done