finally, resizing works (modulo style/depth bug)