added debug versions