totally broken code but tests are passing