minor update

Simplify how to calculate Call level.
Also cleaning up the code for more readability.