args typo fixed
renamed tags variable
removed while
saved total reads count