change NUM_ATTEMPTS