make throw a simple function