optimized logic in IntReader