broken code now fixed