about throw as function