example fixed to rethrow exception