fixed cond else part
remove debug code
add some debugging code
add new cond pattern