better argument type checking
Revert "better argument type checking"

This reverts commit 7a3dd2f01d3fb7f4213d3b153d2c4b6cb10a3b9a.
better argument type checking