correct throwing error