broken code, fixing