cache the index of location2 and set_fine_amount so we don't have to do indexOf twice a row