fix regex check
remove debug info