debug case reimplemented