forgot to change assert to debug stmt