clean code
add pax summary function