fix performance issue : 435 to 98ms to getLevel