added the debug versions