refactor
add application out and in
refactor
fix percent show failure