fix to randomized io