move isoch reading to new function