added debug method documentation