changed log to array instead of stream