add function

error: second round poison
error checking