trying to debug this with some dum puts statements