rewrite show
remove global variable
add nots