add method to throw directly