adding throw for testing