getting a broken version working