added error test
avoid lexical $_
release