fix the modular index on testing
try to add idle() code