improve jstack check message
clean code