max-reosurces bump and shuffle implementation