fix bug in blank line detection
remove debug line