added debug()