bug while read