updated for proper rapid increase phase and binary searching for TTL